<% if Monologue::Config.use_pinterest.presence %>
<%= link_to"Pin It",
             "http://pinterest.com/pin/create/button/?url=#{@post.url}",
             :class => "pin-it-button",
             "count-layout" => "none" %>

<script type="text/javascript">
  (function (d) {
    var f = d.getElementsByTagName('SCRIPT')[0], p = d.createElement('SCRIPT');
    p.type = 'text/javascript';
    p.async = true;
    p.src = '//assets.pinterest.com/js/pinit.js';
    f.parentNode.insertBefore(p, f);
  }(document));
</script>
<% end %>